import { createContext, useContext } from "react";
import MyData from "./myData";

export const store = {
    Mydata:MyData
}


export const userStore = ()=>{
    const k = createContext(store);  //创建全局context
    return useContext(k)//应用
}